package com.cloud.eurekaclient;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @EnableDiscoveryClient注解 激活Eureka中的DiscoveryClient实现，这样才能实现Controller中对服务信息的输出
 *
 * 启动工程 eureka-server 和 eureka-client
 * 访问：http://localhost:1001/  发现client被注册成功
 */
@SpringBootApplication
@EnableDiscoveryClient
public class EurekaClientApplication {

	public static void main(String[] args) {
		SpringApplication.run(EurekaClientApplication.class, args);
	}
}
